package com.cssiot.include.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;

import com.cssiot.ws.config.WebSecurityConfig;

@Configuration
@EnableWebSecurity
public class WebSecurityConfig2 extends WebSecurityConfig{

/*	@Autowired
	private AnyUserDetailsService anyUserDetailsService;

	@Autowired
	public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
		auth.userDetailsService(this.anyUserDetailsService);
	}	@Override
    protected void configure(HttpSecurity http) throws Exception {
        http.authorizeRequests().antMatchers("/", "/webjars/**", "/register", "/api/common/**", "/image/**","/test").permitAll()
                .anyRequest().authenticated().and().formLogin().loginPage("/login").defaultSuccessUrl("/chat", true)
                .permitAll().and().logout().permitAll().and().csrf().disable();
    }*/



}